package com.genghis.ptas.friend.dao;

import com.genghis.ptas.friend.entity.Friend;
import com.genghis.ptas.friend.entity.FriendChatRecord;
import com.genghis.ptas.friend.entity.FriendGroup;
import com.genghis.ptas.security.entity.User;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: gaoyang
 * To change this template use File | Settings | File Templates.
 */
public interface FriendDao {
    void addFriend(Friend friend);

    void delFriend(String ids);

    Friend findFriendById(int userId);

    void addFriendInfo(Friend friend);

    void editFriendInfoByUserId(Friend friend);

    List<User> findFriends(Friend friend);

    void changeApplyState(Friend friend);

    List<Friend> listAllFriend(Friend friend);

    int addFriendGroup(FriendGroup friendGroup);

    void addFriendGroupUser(FriendGroup friendGroup);

    void addChatRecord(FriendChatRecord friendChatRecord);

    int findFriendGroupId(Friend friend);

    List<FriendChatRecord> findChatRecord(FriendChatRecord friendChatRecord);

    void delFriendInfoByUserId(String ids);
}
